import windowActions from "./windowActions";
import measureActions from "./measureActions";
import pseudoColors from "./pseudoColors";
import flipAndRotation from "./flipAndRotation";
import miscActions from "./miscActions";
import textActions from "./textActions";
import loadActions from "./loadActions";
import { blendModeActions, vrColorActions, threedFunctions } from "./threedActions";

const tbButtons = [
	// {
	// 	name: "tbbImages",
	// 	id: "load-folder",
	// 	btnText: "文件夹",
	// 	show: true,
	// 	menu: loadActions,
	// 	icon: "icon-dakaiwenjianjia",
	// 	owner: "2d"
	// },
	{
		name: "tbbLayout",
		id: "layout",
		btnText: "布局",
		show: true,
		icon: "icon-chuangkoubuju",
		holdPress: false,
		owner: "2d"
	},
	{
		name: "tbbScroll",
		id: "scroll",
		btnText: "滚动", // 滚动
		show: true,
		icon: "icon-dicengjiagou",
		owner: "2d"
	},
	{
		name: "tbbMove",
		id: "move",
		btnText: "移动", // 移动
		show: true,
		icon: "icon-yidong",
		owner: "2d"
	},
	{
		name: "tbbZoom",
		id: "zoom",
		btnText: "缩放", // 缩放
		show: true,
		icon: "icon-suofang",
		owner: "2d"
	},
	{
		name: "tbb3dFunction",
		id: "3dFunction",
		btnText: "功能",
		show: true,
		icon: "icon-dianwang-modlue_functionsettings",
		owner: "3d",
		menu: threedFunctions
	},
	{
		name: "tbbWindow",
		id: "wwwl-default",
		btnText: "调窗", // 调窗
		show: true,
		menu: windowActions,
		icon: "icon-tiaochuang",
		owner: "2d3d",
		holdPress: false,
		data: {
			windowCenter: 0,
			windowWidth: 0
		}
	},
	{
		name: "tbbMeasure",
		id: "Length",
		btnText: "测量",
		show: true,
		menu: measureActions,
		icon: "icon-zhixianceliang",
		owner: "2d",
		holdPress: false
	},
	{
		name: "tbbMeasure3d",
		id: "Length",
		btnText: "测量",
		show: true,
		menu: measureActions,
		icon: "icon-zhixianceliang",
		owner: "3d",
		holdPress: true
	},
	{
		name: "tbbBlendMode",
		id: "blendMode",
		btnText: "混合模式",
		show: true,
		menu: blendModeActions,
		icon: "icon-cenghou",
		owner: "3d"
	},
	{
		name: "tbbVrColor",
		id: "vrColor",
		btnText: "三维着色",
		show: true,
		menu: vrColorActions,
		icon: "icon-shangse",
		owner: "3d"
	},
	{
		name: "tbbText",
		id: "text-showtext",
		btnText: "文字", // 文字
		show: true,
		icon: "icon-xianshiwenben",
		owner: "2d",
		menu: textActions
	},
	{
		name: "tbbFlip",
		id: "flip-cw",
		btnText: "旋转", // 旋转
		show: true,
		icon: "icon-xuanzhuanfanzhuan",
		owner: "2d",
		menu: flipAndRotation
	},
	{
		name: "tbbPseudo",
		id: "pseudo",
		btnText: "伪彩",
		// btnText: "toolbar.pseudo", // 伪彩
		show: true,
		icon: "icon-pseudo-color",
		owner: "2d",
		menu: pseudoColors
	},
	{
		name: "tbbSyncWindow",
		id: "syncWindow",
		btnText: "同步调窗",
		show: true,
		icon: "icon-chuangkuanchuangwei",
		holdPress: true,
		owner: "3d"
	},
	{
		name: "tbbSyncZoom",
		id: "syncZoom",
		btnText: "同步缩放",
		show: true,
		icon: "icon-suofang",
		holdPress: true,
		owner: "3d"
	},
	{
		name: "tbbReset",
		id: "reset",
		btnText: "重置",
		// text: "toolbar.restore", // 重置
		show: true,
		icon: "icon-tuxiangfuwei",
		owner: "2d3d"
	},
	{
		name: "tbb3d",
		id: "threed",
		btnText: "三维",
		// btnText: "toolbar.threed", // 三维
		show: true,
		icon: "icon-sanweizhongjian",
		owner: "2d"
	},
	{
		name: "tbbBack",
		id: "back-home",
		btnText: "返回",
		btnText_i: "toolbar.back",
		show: true,
		icon: "icon-tuxiangfuwei",
		owner: "2d3d"
	}
	// {
	// 	name: "tbbMisc",
	// 	id: "misc",
	// 	btnText: "其他",
	// 	show: true,
	// 	icon: "icon-dianwang-modlue_functionsettings",
	// 	owner: "2d",
	// 	menu: miscActions
	// }
];

export default tbButtons;
